<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.tianxiabuyi.utils.ErrcodeUtil" %>
<%@ page import="com.tianxiabuyi.utils.UserUtil" %>
<%@ page import="java.util.List" %>
<%@ include file="/common/validate.jsp"%>
<%
    Integer deptId = input.getInt("dept_id", 0);
    Map<String, List<Map>> memberMap = UserUtil.getUserInDept(hospital, deptId);
    if (memberMap == null || memberMap.isEmpty()) {
        ErrcodeUtil.setErrcode(msg, ErrcodeUtil.NO_RESULT);
    } else {
        msg.put("data", memberMap);
    }
    Tools.encryptPrint(out, msg);
%>
